<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="box">你好</div>
    <div id="box1">你好11111</div>
    <script>
        console.log(box);//<div id="box">你好</div>
        console.log(box1);//<div id="box1">你好11111</div>
        // innerHTML属性:元素对象的属性,读写元素对象里面的内容,包括解析html
        console.log(box1.innerHTML);
        box1.innerHTML="<strong>哈哈哈哈</strong>";
    </script>
</body>
</html>